﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rbac.Services
{
    public enum State
    {
        /// <summary>
        /// 失败
        /// </summary>
        Failed,
        /// <summary>
        /// 成功
        /// </summary>
        Success
    }
    public class ResultDto
    {
        public State Code { get; set; }
        public string Msg { get; set; }
    }

    public class ResultLoginDto : ResultDto
    {
        public string Token { get; set; }
    }

    public class ResultDto<T>
    {
        public State Code { get; set; }
        public string Msg { get; set; }
        public T Data { get; set; }
    }
}
